#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    :   3.py
@Time    :   2020/04/20 15:35:42
@Author  :   Malygos_l 
@Version :   1.0
@Contact :   751756061@qq.com
@WebSite :   www.gitee.com/malygos_l
'''
# 编写一个程序，读取文件中保存的10个学生成绩名单信息(学号,姓名, Python课程分数); 然后按照分数从高到低进行排序输出
# Start typing your code from here

try:
    with open("homework3\score.txt","r") as f:
        score = eval(f.read())
        sort_score = sorted(score, key = lambda x:x[2], reverse = True)
        print(sort_score)
except IOError:
    print("ERROR!")